const path = require('path')

export default {
    // root: path.resolve(__dirname, 'src'),
    resolve: {
        alias: {
            '~bootstrap': path.resolve(__dirname, 'node_modules/bootstrap'),
        }
    },
    server: {
        port: 8080,
        hot: true
    },
    watch: {},
    build: {
        manifest: true,
        ssrManifest: true,
        rollupOptions: {
            input: {
                home: 'src/pages/home/index.js',
                about: 'src/pages/about/index.js',
            },
            output: {
                chunkFileNames: 'assets/js/[name]-[hash].js',
                entryFileNames: 'assets/js/[name]-[hash].js',
                assetFileNames: 'assets/[ext]/[name]-[hash].[ext]',
            }
        }
    }
}